using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Framework.Library;
using Framework.Library.Components.Portal;
using Framework.Library.Utilities;

namespace Framework.Portal
{
    public partial class PrintPreview : System.Web.UI.Page
    {
        private int portalId;
        private string title = ConvertUtility.ToString(PortalSetting.GetSetting()[Definition.Portal_SiteName + AppEnv.GetLanguage()]);
        public string style = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            PortalSetting setting = PortalSetting.GetSetting();
            portalId = ConvertUtility.ToInt32(AppEnv.PortalId());

            string sl = ConvertUtility.ToString(setting[Definition.Portal_Style + "_" + portalId + "_" + AppEnv.GetLanguage()]);
            style = "<link rel=\"stylesheet\" type=\"text/css\" href=\"" + sl + "/Default.css" + "\"\\>";
            style += "<script src=\"/Jscripts/" + sl.Substring(sl.LastIndexOf("/") + 1) + "/tooltip2.js\" type=\"text/javascript\"></script>";
            titTitle.InnerText = title;
        }
    }
}
